
		<div class="sidebar">
			<div class="sidebar-content">
 

				<!-- Main navigation -->
				<ul class="navigation">
					<!-- 
					 -->
					<li><a href="users.php"><span>用户-管理</span> <i class="icon-user"></i></a></li>	 

					<li><a href="user-meters.php"><span>用户-表计-管理</span> <i class="icon-wave2"></i></a></li>	 
					
					<li><a href="meters.php"><span>表计-管理</span> <i class="icon-meter"></i></a></li>

					<li><a href="meter-data.php"><span>表计-数据查看</span> <i class="icon-wrench"></i></a></li>

					<li><a href="user-data.php"><span>用户-数据查看</span> <i class="icon-table"></i></a></li>
					 
					 <li><a href="#" onclick="syncData();"><span>数据同步</span> <i class="icon-spinner"></i></a></li>
				</ul>
				<!-- /main navigation -->

				<script type="text/javascript">
					
					function syncData(){
						$.ajax({
						  url : '/meter/rest/disp.php?m=sync',
						  type : 'GET',
						  data : {},
						  cache : false,
						  contentType : false,
						  processData : false,
						  success : function( result , textStatus, jqXHR) {
						    if(result.status == 0 ){
						    	 layer.msg('Sync ok');
						    }else {
						    	alert(result.message);
						    }
						  },
						  error : function(jqXHR, textStatus, errorThrown) {
						    alert(textStatus);
						  }
						});
					}

				</script>

			</div>
		</div>